#include "CameraWrapper.h"
#include "../engine/Vec3.h"

using System::NotImplementedException;

CameraWrapper::CameraWrapper(Camera* camera)
{
	_camera = camera;
}

void CameraWrapper::LookAt(
	float eyex, float eyey, float eyez,
	float atx, float aty, float atz,
	float upx, float upy, float upz)
{
	_camera->lookAt(
		Vec3(eyex, eyey, eyez),
		Vec3(atx, aty, atz),
		Vec3(upx, upy, upz)
	);
}

void CameraWrapper::Move(float x, float y, float z)
{
	_camera->move(x, y, z);
}

void CameraWrapper::Scale(float x, float y, float z)
{
	//
}

void CameraWrapper::Rotate(float x, float y, float z)
{
	_camera->rotate(x, y, z);
}

void CameraWrapper::GetPosition([Out] float% x, [Out] float% y, [Out] float% z)
{
	Vec3 position = _camera->getPosition();

	x = position.x;
	y = position.y;
	z = position.z;
}